<script setup>
import NodeAttr from "./common/NodeAttr.vue";
import FlowEvent from "./common/FlowEvent.vue";
import NodeFormPerm from "./common/NodeFormPerm.vue";
import NodeSubFlow from "./common/NodeSubFlow.vue";

const props = defineProps({
  taskIndex: Number,
  defFlow: Object
});

const _value = defineModel();
</script>
<template>
  <el-scrollbar>
    <el-tabs stretch type="border-card">
      <el-tab-pane lazy label="节点属性">
        <NodeAttr v-model="_value" />
      </el-tab-pane>
      <el-tab-pane lazy label="监听事件">
        <FlowEvent v-model="_value" :defFlow="props.defFlow" />
      </el-tab-pane>
      <el-tab-pane lazy label="表单权限">
        <NodeFormPerm
          default-perm-type="R"
          default-display-type="S"
          v-model="_value"
          :defFlow="props.defFlow"
        />
      </el-tab-pane>
      <el-tab-pane lazy label="子流程">
        <NodeSubFlow v-model="_value" />
      </el-tab-pane>
    </el-tabs>
  </el-scrollbar>
</template>

<style lang="scss" scoped>
@use "@/assets/style/design/flow-attr.scss";
</style>
